package com.atguigu.campusintelligentassistantsystem.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MainController {

    @GetMapping("/")
    public String index() {
        return "欢迎使用校园智能助手系统！";
    }

    @GetMapping("/health")
    public String health() {
        return "系统运行正常";
    }
}